package com.example.cupid.service;

import com.example.cupid.pojo.Admin;
import com.example.cupid.pojo.User;

import java.sql.Date;
import java.util.List;

public interface UserService {

    //登录
    public User findUser(String email, String password);
    //根据用户名查询
    public List<User> findAll();
    //注册
    public boolean addUser(String email, String password, String username, Date date,Integer payMoney);

    User findUserByEmail(String email);

    //管理员登陆
    Admin checkUser(String email, String password);
}
